home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kopete / kopeteuiglobal.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.9 KB  |  73 lines

  1. /*
  2.     kopeteuiglobal.h - Kopete UI Globals
  3.  
  4.     Copyright (c) 2004      by Richard Smith         <kde@metafoo.co.uk>
  5.  
  6.     Kopete    (c) 2004      by the Kopete developers <kopete-devel@kde.org>
  7.  
  8.     *************************************************************************
  9.     *                                                                       *
  10.     * This library is free software; you can redistribute it and/or         *
  11.     * modify it under the terms of the GNU Lesser General Public            *
  12.     * License as published by the Free Software Foundation; either          *
  13.     * version 2 of the License, or (at your option) any later version.      *
  14.     *                                                                       *
  15.     *************************************************************************
  16. */
  17.  
  18. #ifndef KOPETEUIGLOBAL_H
  19. #define KOPETEUIGLOBAL_H
  20.  
  21. #include <qwidget.h>
  22.  
  23. #include "kopete_export.h"
  24.  
  25. namespace Kopete
  26. {
  27.  
  28. namespace UI
  29. {
  30.  
  31. /**
  32.  * This namespace contains the Kopete user interface's global settings
  33.  */
  34. namespace Global
  35. {
  36.     /**
  37.      * Set the main widget to widget
  38.      */
  39.     KOPETE_EXPORT void setMainWidget( QWidget *widget );
  40.     /**
  41.      * Returns the main widget - this is the widget that message boxes
  42.      * and KNotify stuff should use as a parent.
  43.      */
  44.     KOPETE_EXPORT QWidget *mainWidget();
  45.  
  46.     /**
  47.      * \brief Returns the WId of the system tray.
  48.      *
  49.      * Allows developers easy access to the WId of the system tray so
  50.      * that it can be used for passive popups in the protocols
  51.      * \return the WId of the system tray. Returns the WId of the main
  52.      * widget if there's no system tray.
  53.      */ 
  54.     KOPETE_EXPORT int sysTrayWId();
  55.  
  56.     /**
  57.      * \brief Set the WId of the system tray.
  58.      *
  59.      * Called by the KopeteSystemTray constructor and destructor to 
  60.      * set the WId for the system tray appropriately
  61.      */
  62.     KOPETE_EXPORT void setSysTrayWId( int newWinId );
  63. } //Global::UI
  64.  
  65. } //UI
  66.  
  67. }
  68.  
  69. #endif
  70.  
  71. // vim: set noet ts=4 sts=4 sw=4:
  72.  
  73.